package com.shuijing.boot.rest;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class RestApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(RestApplication.class);
        Environment environment = app.run(args).getEnvironment();
        String port = environment.getProperty("server.port", "8080");
        String fullUrl = "http://localhost:" + port + "/doc.html";
        System.out.println("************************************************************");
        System.out.println("* Swagger 访问地址: " + fullUrl);
        System.out.println("************************************************************");
    }

}
